<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="../js/jquery.min.js"></script>
    <script>
        $(function () {
            // jQuery对象.attr("属性名")
            // console.log($("img").attr("src"));

            // jQuery对象.attr("属性名","属性值")
            $("img").attr("src","../images/b.gif");

            // jQuery对象.prop("checked")选中：true  未选中：false
            console.log($("input").prop("checked"))
        });
    </script>
</head>
<body>
    <img src="../images/a.gif" alt="">
    <input type="checkbox" >
</body>
</html>